<?php

namespace App\View\Components;

use App\Models\Category;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;

class Nav extends Component
{
    public function __construct()
    {
        //
    }

    public function render(): View
    {
        $navs = Category::all();

        return view('components.nav', compact('navs'));
    }
}
